<?php
/**
 * This file is part of the Jindai.
 * @copyright Copyright (c) 2019 All Rights Reserved.
 * @author jindai <jindai0305@gmail.com>
 */

namespace App\Http\Controllers\Api\v1;

use Illuminate\Http\Request;

/**
 * Class ReportController
 * @package App\Http\Controllers\Api\v1
 *
 * @SWG\Tag(name="Report", description="举报")
 */
class ReportController extends Controller
{
    /**
     * @param Request $request
     * @return string
     *
     * @SWG\Definition(
     *     definition="reportBodyParams",
     *     type="object",
     *     @SWG\Property(property="type", type="string", description="类型", example="item"),
     *     @SWG\Property(property="content", type="string", description="内容", example="计算机网络"),
     *     @SWG\Property(property="params", type="object", description="附加参数",
     *         @SWG\Property(property="id", type="integer", description="主键id", example=1),
     *     ),
     *     @SWG\Property(property="url", type="string", description="页面路径", example="/topics/3"),
     * )
     *
     * @SWG\Post(path="/report",
     *     tags={"Report"},
     *     summary="新增举报",
     *     description="新增举报",
     *     security={{"api_key": {}}},
     *     deprecated=false,
     *     @SWG\Parameter(in="body", name="body", description="提交的数据", required=true,
     *         @SWG\Schema(ref="#/definitions/reportBodyParams")
     *     ),
     *     @SWG\Response(response=200,description="success"),
     *     @SWG\Response(response=400,description="failed"),
     *     @SWG\Response(response=401,description="未登录")
     * )
     */
    public function store(Request $request)
    {
        return '';
    }
}
